import { createBrowserRouter } from "react-router-dom";
import Layout from "../components/Layout";
import CounterPage from "../pages/PageB";
import PageA from "@/pages/PageA";
import PageB from "../pages/PageB";

const routers = [
  {
    path: "/",
    element: <Layout />,
    children: [
      {
        path: "pageA",
        element: <PageA />,
      },
      {
        path: "pageB",
        element: <PageB />,
      },
    ],
  },
];

export default createBrowserRouter(routers);
